#include "btestdemo.h"

#include <string>
#include <iostream>
using namespace  std;

BtestDemo::BtestDemo()
    : id (0)
{

    cout << "ctor this=" << this << endl;
    string* pstr = new string;

    cout << "str" << *pstr << endl;

//    pstr->string::string("lm");
    pstr->~string();
}

BtestDemo::~BtestDemo()
{
    cout << "dtor. this = " << this << endl;
}

void BtestDemo::printid()
{
    cout << "the id is = " << id << endl;
}
